package com.jiaanpei.frameproject.modle.splash;

import android.os.Handler;

import com.jiaanpei.frameproject.R;
import com.jiaanpei.frameproject.base.BaseActivity;
import com.jiaanpei.frameproject.manage.Navigate;

public class SplashActivity extends BaseActivity {
    @Override
    protected int getLayout() {
        return R.layout.ac_splash;
    }

    @Override
    protected void initEventAndData() {
        if (!isTaskRoot()) {
            finish();
            return;
        }
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                // 登录过
                Navigate.startLoginActivity(getContext());
                finish();
            }
        }, 2000);
    }
}
